import myFooter from './Footer'
import myHeader from './Header'
import letterSort from './LetterSort'

const components = [
  myFooter,
  myHeader,
  letterSort
]

const install = function (Vue) {
  if (install.installed) return
  components.map(component => {
    Vue.component(component.name, component)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}
export {
  myFooter,
  myHeader,
  letterSort
}
